package com.topc.base.model;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@ToString
public class PageResult<T> implements Serializable {

    private List<T> items;

    private long counts;

    private long current;

    private long pageSize;

    public PageResult(List<T> items, long counts, long current, long pageSize) {
        this.items = items;
        this.counts = counts;
        this.current = current;
        this.pageSize = pageSize;
    }


}
